<%@page import="java.awt.List" import="java.util.Map" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    
<%@ taglib prefix="s" uri="/struts-tags"%> 
<jsp:useBean id="Teacher" class="bean.Teacher" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>

<link href="<%=request.getContextPath() %>/css/admin/admin_modify_teacher.css" rel="stylesheet">
</head>
<body>

<jsp:include page="header.jsp"></jsp:include>
	<div class="con">
		<h1>修改教师账号</h1>
		<div class="a_teacher_info">
			<form action="amodify.action">
				<table class="table table-striped table-bordered" style="width:800px;">
					<tr>
						<td style="width:80px;"><lable>用户名</lable></td>
						<td style="width:150px;"><input class="input input-sm" type="text" name="username" value="<s:property value="#teacher.teachername" />"/></td>
									<!-- 注意：上面必须带上# -->
						<td style="width:200px;"><input type="hidden" name="id" value="<s:property value="#teacher.teacherid" />"/></td>
					</tr>
					
					<tr>
						<td><lable>密码</lable></td>
						<td><input class="input input-sm"  type="text" name="password" placeholder="重置密码" /></td>
						<td>如果不需要重新设置密码请留空</td>
					</tr>
					
					<tr>
						<td><lable>全名</lable></td>
						<td><input class="input input-sm"  type="text" name="realname" value="<s:property value="#teacher.fullname" />" /></td>
						<td></td>
					</tr>
					
					<tr>
						<td></td>
						<s:if test="#teacher.power">
							<td><input type="checkbox" name="power" value="true" checked="checked" />管理员</td>
						</s:if>
						<s:else>
							<td><input type="checkbox" name="power" value="true"/>管理员</td>
						</s:else>
						<td></td>
					</tr>
					
					<tr>
						<td></td>
						<td><button class="btn btn-primary" type="submit">修改</button></td>
						<td></td>
					</tr>
				
				</table>
			
			</form>
		</div>
		
	</div>

</body>
</html>